home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / CyberItems and FW_CWritable⁄Rea < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     CyberItems and FW_CWritable/ReadableStream
  2. Sent:        5/9/96 2:21 AM
  3. Received:    5/9/96 7:01 AM
  4. From:        Hutchings Software Development, hsd@earthlink.net
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hi,
  9.  
  10. It's been noted that ODF 1.0 has Cyberdog support. I ran into a little
  11. problem this evening with d11, and wonder if 1.0 has a good solution to
  12. it...
  13.  
  14. Here's the deal. I've got CyberItems as data members of a dynamic
  15. archivable class. I followed the archivable class recipe from d11 (date on
  16. pages is 6/29/95) ODF Reference Manual.
  17.  
  18. Anyway, the parameter to my "Read" and "Write" methods is a
  19. FW_CReadableStream and a FW_CWritableStream respectively. However, Cyberdog
  20. would really prefer to write and read to an ODStorageUnit with methods
  21. CyberItem::StreamToStorageUnit and CyberSession::CreateCyberItemFromSU. I
  22. tried getting the storage unit from the streams, but I couldn't get it to
  23. work without crashing hard.
  24.  
  25. Another alternative is to use CyberItem::Flatten and then try to put the
  26. CyberItem back together (not trivial, given the Cyberdog API - it would be
  27. nice if the CyberSession object had a public method for Unflattening). I
  28. haven't trued that yet.
  29.  
  30. Yet another alternative is to just store the URL, but that's not quite as
  31. good as storing the whole item.
  32.  
  33. So, my question is... How will I deal with CyberItems from dynamic
  34. archiving classes? Is there an obvious workaround for d11?
  35.  
  36. Brad
  37.  
  38.  
  39.  
  40. Richard B. "Brad" Hutchings
  41. General Partner,
  42. Hutchings Software Development
  43.  
  44. hsd@earthlink.net
  45.